﻿using System.Data.Entity;
using si.caha.Model;

namespace si.caha.Repository
{
    public class DataContext : DbContext
    {
        // DbSet field is defining database table
        public DbSet<User> Users { get; set; }
        public DbSet<Item> Items { get; set; }
        public DbSet<Address> Addresses { get; set; }
        public DbSet<Order> Orders { get; set; }
        public DbSet<Review> Reviews { get; set; }
        public DbSet<Image> Images { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<OrderedItem> OrderedItems { get; set; }
    }
}
